angular.run   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
nc 1
dl 0
loc 3
rs 10
nop 1
1
'use strict';
2
3
angular
4
  .module('game')
5
  .config(['$stateProvider',
6
    function($stateProvider) {
7
      $stateProvider
8
        .state('generators', {
9
          component: 'generators'
10
        })
11
        .state('redox', {
12
          component: 'redox'
13
        })
14
        .state('reactions', {
15
          component: 'reactions'
16
        })
17
        .state('fusion', {
18
          component: 'fusion'
19
        })
20
        .state('upgrades', {
21
          component: 'upgrades'
22
        })
23
        .state('exotic', {
24
          component: 'exotic'
25
        })
26
        .state('dark', {
27
          component: 'dark'
28
        })
29
        .state('elements', {
30
          component: 'elements'
31
        })
32
        .state('achievements', {
33
          component: 'achievements'
34
        })
35
        .state('dashboard', {
36
          component: 'dashboard'
37
        })
38
        .state('statistics', {
39
          component: 'statistics'
40
        })
41
        .state('options', {
42
          component: 'options'
43
        });
44
    }
45
  ]).run([
46
    '$state',
47
    function($state) {
48
      $state.go('generators');
49
    }
50
  ]);
51